package com.showcai.dao;

import com.showcai.module.Advert;

import java.util.List;

public interface AdvertMapper {

    int deleteByPrimaryKey(Integer tid);

    int insert(Advert record);

    int insertSelective(Advert record);

    int insertAdvert(Advert record);

    List<Advert> getAdvertBylocationId(Long locationId);

    List<Advert> getAdvertPageList();

    Advert getAdvertByTid(Long tid);

    int updateAdvertPrimaryKeySelective(Advert record);

    int updateByPrimaryKey(Advert record);
    void stopAdvert(Long tid);
    void operateAdvert(Long tid);
}